import Vue from 'vue'
// 设置全局变量
import global_ from './components/Global.vue'
import App from './App.vue'
import router from './router';
import store from './store';
import axios from 'axios';
import utils from './utils/utils';
// axios.defaults.withCredentials=true;
// import vuePicturePreview from 'vue-picture-preview'
import gallery from 'img-vuer'
import VueQuillEditor from 'vue-quill-editor'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './css/reset.css';
import './css/unit.css';
import './css/skin.css';
import './css/function.css';
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.prototype._utils = utils;
Vue.prototype.GLOBAL = global_
Vue.prototype.$axios = axios;

Vue.use(ElementUI)
Vue.use(VueQuillEditor, /* { default global options } */)
// Vue.use(vuePicturePreview)


// Vue.use(gallery)
Vue.use(gallery, { 
  swipeThreshold: 15000  // default 100 ,new in 0.12.0
})
          
Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
